//
//  HTTPPromise+Me.m
//  HTHappySale
//
//  Created by 创维海通 on 2017/9/20.
//  Copyright © 2017年 zxyywy. All rights reserved.
//

#import "HTTPPromise+Me.h"

@implementation HTTPPromise (Me)

+ (HTTPPromise *)requestUser_InfoParams:(NSData *)params
                                Success:(HTTPPromiseFulfiller)success
                                failure:(HTTPPromiseRejecter)failure{
    return [self POST:MainUserInfo_URL
           parameters:nil
                 json:params
              success:success
              failure:failure];
}

+ (HTTPPromise *)requestBindManagerParams:(NSData *)params
                                  Success:(HTTPPromiseFulfiller)success
                                  failure:(HTTPPromiseRejecter)failure{
    return [self POST:MainBindManager_URL
           parameters:nil
                 json:params
              success:success
              failure:failure];
}

+ (HTTPPromise *)requestMineWalletParams:(NSData *)params
                                 Success:(HTTPPromiseFulfiller)success
                                 failure:(HTTPPromiseRejecter)failure
{
    return [self POST:MainMineWallet_URL
           parameters:nil
                 json:params
              success:success
              failure:failure];
}

+ (HTTPPromise *)requestWithdrawHistoryParams:(NSData *)params
                                      Success:(HTTPPromiseFulfiller)success
                                      failure:(HTTPPromiseRejecter)failure
{
    return [self POST:MainWithdrawHistoryt_URL
           parameters:nil
                 json:params
              success:success
              failure:failure];
}

+ (HTTPPromise *)requestWithdrawDescriptionParams:(NSData *)params
                                          Success:(HTTPPromiseFulfiller)success
                                          failure:(HTTPPromiseRejecter)failure
{
    return [self POST:MainWithdrawDescription_URL
           parameters:nil
                 json:params
              success:success
              failure:failure];
}

+ (HTTPPromise *)requestWithdrawCashParams:(NSData *)params
                                   Success:(HTTPPromiseFulfiller)success
                                   failure:(HTTPPromiseRejecter)failure
{
    return [self POST:MainWithdrawCash_URL
           parameters:nil
                 json:params
              success:success
              failure:failure];
}

+ (HTTPPromise *)requestAboutParams:(NSData *)params
                            Success:(HTTPPromiseFulfiller)success
                            failure:(HTTPPromiseRejecter)failure{
    return [self POST:MainAbout_URL
           parameters:nil
                 json:params
              success:success
              failure:failure];
}

+ (HTTPPromise *)requestUserPortraitParams:(NSData *)params
                                   Success:(HTTPPromiseFulfiller)success
                                   failure:(HTTPPromiseRejecter)failure{
    return [self POST:MainUserPortrait_URL
           parameters:nil
                 json:params
              success:success
              failure:failure];
}

+ (HTTPPromise *)requestUserNicknameParams:(NSData *)params
                                   Success:(HTTPPromiseFulfiller)success
                                   failure:(HTTPPromiseRejecter)failure
{
    return [self POST:MainUserNick_URL
           parameters:nil
                 json:params
              success:success
              failure:failure];
}

+ (HTTPPromise *)requestQQgroupParams:(NSData *)params
                              Success:(HTTPPromiseFulfiller)success
                              failure:(HTTPPromiseRejecter)failure
{
    return [self POST:MainQQGroup_URL
           parameters:nil
                 json:params
              success:success
              failure:failure];
}

+ (HTTPPromise *)requestMyCodeParams:(NSData *)params
                             Success:(HTTPPromiseFulfiller)success
                             failure:(HTTPPromiseRejecter)failure{
    return [self POST:MainMyCode_URL
           parameters:nil
                 json:params
              success:success
              failure:failure];
}

+ (HTTPPromise *)requestFeedbackParams:(NSData *)params
                               Success:(HTTPPromiseFulfiller)success
                               failure:(HTTPPromiseRejecter)failure{
    return [self POST:Mainfeedback_URL
           parameters:nil
                 json:params
              success:success
              failure:failure];
}
@end
